package com.ruoyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StockMapper extends BaseMapper<Stock> {
    List<Stock> getSearchList(String keyword);

    /**
     * 根据股票代码来查询股票id
     * @Param stockCode 股票代码
     */
    Integer getStockIdByCode(@Param("stockCode") String stockCode);
}
